package com.jz.netthings.application.providerCollection.bean;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 采浆记录-设备异常
 * </p>
 *
 * @author zyl
 * @since 2019-03-25
 */
public class DeviceException implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("mlogId")
    private String mlogId;
    /**
     * 序号
     */
    private Integer no;
    /**
     * 异常发生采层 
     */
    private Integer floor;
    /**
     * 异常发生时间
     */
    private Date extTime;
    /**
     * 设备码
     */
    private Integer devCode;
    /**
     * 异常类型
     */
    private Integer extType;
    /**
     * 异常发生阶段
     */
    private Integer extPara;
    /**
     * 异常信息
     */
    private String extMsg;
    /**
     * 异常恢复时间
     */
    private Date extRecoverTime;
    /**
     * 异常等级
     */
    private Integer extLevel;


    public String getMlogId() {
        return mlogId;
    }

    public void setMlogId(String mlogId) {
        this.mlogId = mlogId;
    }

    public Integer getNo() {
        return no;
    }

    public void setNo(Integer no) {
        this.no = no;
    }

    public Integer getFloor() {
        return floor;
    }

    public void setFloor(Integer floor) {
        this.floor = floor;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getExtTime() {
        return extTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setExtTime(Date extTime) {
        this.extTime = extTime;
    }

    public Integer getDevCode() {
        return devCode;
    }

    public void setDevCode(Integer devCode) {
        this.devCode = devCode;
    }

    public Integer getExtType() {
        return extType;
    }

    public void setExtType(Integer extType) {
        this.extType = extType;
    }

    public Integer getExtPara() {
        return extPara;
    }

    public void setExtPara(Integer extPara) {
        this.extPara = extPara;
    }

    public String getExtMsg() {
        return extMsg;
    }

    public void setExtMsg(String extMsg) {
        this.extMsg = extMsg;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getExtRecoverTime() {
        return extRecoverTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setExtRecoverTime(Date extRecoverTime) {
        this.extRecoverTime = extRecoverTime;
    }

    public Integer getExtLevel() {
        return extLevel;
    }

    public void setExtLevel(Integer extLevel) {
        this.extLevel = extLevel;
    }

    @Override
    public String toString() {
        return "DeviceException{" +
        "mlogId=" + mlogId +
        ", no=" + no +
        ", floor=" + floor +
        ", extTime=" + extTime +
        ", devCode=" + devCode +
        ", extType=" + extType +
        ", extPara=" + extPara +
        ", extMsg=" + extMsg +
        ", extRecoverTime=" + extRecoverTime +
        ", extLevel=" + extLevel +
        "}";
    }
}
